<template>
  <div class="account">
    <div class="account-item" v-for="item,index in account" :key="index">
      <span class="balance">{{item.balance}}</span>
      <p class="item-info">{{item.text}}</p >
    </div>
  </div>
</template>

<script>
  export default {
    name: 'Account',
    data() {
      return {
        account:[
          {balance: '0.0',text:'我的余额'},
          {balance: 0,text:'我的优惠卷'},
          {balance: 0,text:'我的积分'}
        ]
      }
    }

  }
</script>

<style scoped="scoped">
  .account {
    display: flex;
  }

  .account-item {
    width: 100%;
    margin-right: 3px;
    padding: 15px;
    color: #666;
    font-size: 13px;
    background-color: #fff;
    text-align: center;
  }

  .account-item:last-of-type {
    margin-right: 0;
  }

  .account-item .balance {
    font-size: 24px;
    font-weight: 700;
    color: #ff5f3e;
  }

  .item-info {
    margin-top: 6px;
  }
</style>